package org.scohen.juploadr.uploadapi.zooomr.urls;

import java.net.URL;
import java.util.SortedMap;
import java.util.TreeMap;

import org.scohen.juploadr.uploadapi.zooomr.DefaultZooomrHandler;
import org.scohen.juploadr.uploadapi.zooomr.ZooomrMethod;
import org.scohen.juploadr.uploadapi.zooomr.ZooomrRestApi;

public class GetUserPhotos extends ZooomrMethod {
    private URL url;
    
    public SortedMap<String, String> getParams() {
        TreeMap<String, String> params = new TreeMap<String, String>();
        params.put("api_key",ZooomrRestApi.ZOOOMR_API_KEY);
        params.put("method", "zooomr.urls.getUserPhotos");
        return params;
    }

    public DefaultZooomrHandler getResponseHandler() {
        
        return new GetUserPhotosHandler(this);
    }

    public boolean isAuthorized() {
        return true;
    }
    
    void setURL(URL url) {
        this.url = url;
    }
    
    public URL getURL() {
        return url;
    }

}
